/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.coupon.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ykht.proj.coupon.entity.FxReward;
import com.ykht.proj.coupon.entity.FxWaiterExt;
import com.ykht.proj.coupon.vo.*;

import java.util.List;

/**
 * 服务员奖励记录表(待定)
 *
 * @author proj code generator
 * @date 2021-02-01 19:00:17
 */
public interface FxRewardService extends IService<FxReward> {
	/**
	 * 分销明细 分页查询
	 * @param page
	 * @param fxRewardVo
	 * @return
	 */
    IPage<FxRewardVo> findPage(Page page, FxRewardVo fxRewardVo);

	/**
	 * 获取 分销明细 统计金额
	 * @param fxRewardVo
	 * @return
	 */
	FxRewardVo getSumByMoney(FxRewardVo fxRewardVo);

	/**
	 * 获取饭友详情 的 核销明细 分页
	 * @param page
	 * @param fxRewardVo
	 * @return
	 */
    IPage<FxRewardVo> getWriteDetailsListPage(Page page, FxRewardVo fxRewardVo);

	/**
	 * 获取饭友详情 的 核销明细 统计（核销佣金 和 核销次数）
	 * @param fxRewardVo
	 * @return
	 */
	FxRewardVo getWriteDetailsCount(FxRewardVo fxRewardVo);

	/**
	 * 饭友详情的 饭友列表 分页
	 * @param page
	 * @param fxRewardVo
	 * @return
	 */
	IPage<FxRewardVo> getFanYouDetailsListPage(Page page, FxRewardVo fxRewardVo);

	/**b端
	 * 账户概览
	 * @param
	 * @return
	 */
    ZHGLVo zhgl(BaseSearchTimeVo timeVo,UserTypeIdVo userTypeIdVo);

	CouponUseResp couponUse(BaseSearchTimeVo timeVo,UserTypeIdVo userTypeIdVo);

	CouponUseTopVo couponUseTop(BaseSearchTimeVo timeVo, UserTypeIdVo userTypeIdVo);

	FXRWVo fxrw(BaseSearchTimeVo timeVo, UserTypeIdVo userTypeIdVo);

	List<FxRewardView> shopRewardTop(FxRewardView fxRewardView);

	List<FxRewardView> waiterRewardTop(FxRewardView fxRewardView);

	/**
	 * 获取服务员的佣金收益 统计
	 * @param fxRewardVo
	 * @return
	 */
	FxRewardVo getSumByMoneyAndFind(FxRewardVo fxRewardVo);

	/**
	 * 获取服务员 佣金收益统计下边的饭友列表
	 * @param page
	 * @param fxRewardVo
	 * @return
	 */
	IPage<FxRewardVo> getCommissionRevenuesFanYouCount(Page page, FxRewardVo fxRewardVo);

	/**
	 * 获取服务员 收益明细 统计信息
	 * @param fxRewardVo
	 * @return
	 */
	FxRewardVo getCommissionRevenuesDetailed(FxRewardVo fxRewardVo);

	/**
	 * 获取服务员 收益明细 的列表
	 * @param page
	 * @param fxRewardVo
	 * @return
	 */
	IPage<FxRewardVo> getCommissionRevenuesFanYouDetailedList(Page page, FxRewardVo fxRewardVo);

	/**
	 * 获取服务员 收益明细 的类型 统计
	 * @param fxRewardVo
	 * @return
	 */
	FxRewardVo getCommissionRevenuesFanYouDetailedCount(FxRewardVo fxRewardVo);

    void insert(FxReward fxReward);

	FxReward inviteReward(FxWaiterExt fxWaiterExtTemp, FxWaiterExt fxWaiterExt, Long waiterId, Long id);
}
